package com.yaolifei.flower.core;

import org.nutz.dao.entity.annotation.Id;
import org.nutz.dao.entity.annotation.Table;

@Table("t_sys_permission")
public class Permission {
	@Id
	private int permissionId;
	private PermissionMaster masterType;
	private PermissionObject object;
	private int insert;
	private int delete;
	private int update;
	private int select;
	private int run;

	public static void main(String[] args) {
		User user = new User();
		System.out.println(user.getObjectType());
	}

	public int getPermissionId() {
		return permissionId;
	}

	public void setPermissionId(int permissionId) {
		this.permissionId = permissionId;
	}

	public PermissionMaster getMasterType() {
		return masterType;
	}

	public void setMasterType(PermissionMaster masterType) {
		this.masterType = masterType;
	}

	public PermissionObject getObject() {
		return object;
	}

	public void setObject(PermissionObject object) {
		this.object = object;
	}

	public int getInsert() {
		return insert;
	}

	public void setInsert(int insert) {
		this.insert = insert;
	}

	public int getDelete() {
		return delete;
	}

	public void setDelete(int delete) {
		this.delete = delete;
	}

	public int getUpdate() {
		return update;
	}

	public void setUpdate(int update) {
		this.update = update;
	}

	public int getSelect() {
		return select;
	}

	public void setSelect(int select) {
		this.select = select;
	}

	public int getRun() {
		return run;
	}

	public void setRun(int run) {
		this.run = run;
	}

}
